﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TeacherMaster.Master" AutoEventWireup="true"
    CodeBehind="TeachOrder.aspx.cs" Inherits="LMS.SMSH.WEB.TeachOrder" MaintainScrollPositionOnPostback="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript" src="jQuery/jquery-1.7.1.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#Reset2").click(function () {
                $("#txtProjectName").val("");
                $("#txtContent").val("");
                $("#txtStuTotalCount").val("");
            })
        })
    </script>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <br />
    <table bgcolor="#CCCCCC" border="0" cellpadding="0" cellspacing="0" style="width:580px">
        <tr>
            <td bgcolor="#FFFFFF" height="60" align="center" style="font-size: 40px">
                <strong>实验室预约 </strong>
            </td>
        </tr>
        <tr>
            <td>
                <table border="0" cellpadding="0" cellspacing="1" width="580">
                    <tr>
                        <td align="right" bgcolor="#FFFFFF" height="30" width="200">
                            <font color="#FF0000" size="2">*&nbsp;</font><font size="2">实 验 室</font>
                        </td>
                        <td bgcolor="#FFFFFF" height="30" width="500">
                            &nbsp;
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                <ContentTemplate>
                                    <asp:DropDownList ID="ddlLab" runat="server" AutoPostBack="True">
                                        <asp:ListItem>请选择实验室</asp:ListItem>
                                    </asp:DropDownList>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" bgcolor="#FFFFFF" height="30" width="200">
                            <font size="2"><span style="color: #ff0000">* </span>实验名称</font>
                        </td>
                        <td bgcolor="#FFFFFF" height="30" width="500">
                            &nbsp;<asp:TextBox ID="txtProjectName" runat="server" Width="200px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtProjectName"
                                Display="Dynamic" ErrorMessage="必须填写实验名称！" ForeColor="#AA11FF"></asp:RequiredFieldValidator>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" bgcolor="#ffffff" height="30">
                            <font size="2"><span style="color: #ff0000">* </span>实验日期</font>
                        </td>
                        <td bgcolor="#ffffff" height="30">
                            &nbsp; &nbsp;&nbsp;
                            <asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="#3366CC"
                                BorderWidth="1px" CellPadding="1" DayNameFormat="Shortest" Font-Names="Verdana"
                                Font-Size="8pt" ForeColor="#003399" Height="200px" Width="220px">
                                <DayHeaderStyle BackColor="#99CCCC" ForeColor="#336666" Height="1px" />
                                <NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF" />
                                <OtherMonthDayStyle ForeColor="#999999" />
                                <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                                <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
                                <TitleStyle BackColor="#003399" BorderColor="#3366CC" BorderWidth="1px" Font-Bold="True"
                                    Font-Size="10pt" ForeColor="#CCCCFF" Height="25px" />
                                <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
                                <WeekendDayStyle BackColor="#CCCCFF" />
                            </asp:Calendar>
                            <br />
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>
                                    &nbsp;<asp:DropDownList ID="ddlLabStatus" runat="server" AutoPostBack="True">
                                        <asp:ListItem Text="上午一二节" Value="1"></asp:ListItem>
                                        <asp:ListItem Text="上午三四节" Value="2"></asp:ListItem>
                                        <asp:ListItem Text="下午一二节" Value="3"></asp:ListItem>
                                        <asp:ListItem Text="下午三四节" Value="4"></asp:ListItem>
                                        <asp:ListItem Text="晚上一二节" Value="5"></asp:ListItem>
                                    </asp:DropDownList>
                                    <br />
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" bgcolor="#ffffff" height="30">
                            <font size="2"><span style="color: #ff0000">* </span>学生总数</font>
                        </td>
                        <td bgcolor="#ffffff" height="30">
                            &nbsp;<asp:TextBox ID="txtStuTotalCount" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtProjectName"
                                Display="Dynamic" ErrorMessage="必须输入学生总数!" ForeColor="#AA11FF"></asp:RequiredFieldValidator>
                            <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtStuTotalCount"
                                ErrorMessage="学生总数是1-200的数值！" ForeColor="#AA11FF" MaximumValue="200" MinimumValue="1"
                                Type="Integer"></asp:RangeValidator>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" bgcolor="#ffffff" height="30">
                            <font size="2">详细说明</font>
                        </td>
                        <td bgcolor="#ffffff" height="30">
                            &nbsp;<asp:TextBox ID="txtContent" runat="server" CssClass="box-3" Rows="15" TextMode="MultiLine"
                                Width="82%" Height="128px"></asp:TextBox>
                            <br />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtContent"
                                Display="Dynamic" ErrorMessage="必须填写预约实验详细说明" ForeColor="#AA11FF"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" bgcolor="#FFFFFF" colspan="2" height="30">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                                ShowSummary="False" Width="280px" />
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td align="center" bgcolor="#FFFFFF" colspan="2" height="30">
                            <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text="保存提交" />
                            &nbsp;
                            <input id="Reset2" type="reset" value="重新填写" />
                            <input id="hidProjectID" runat="server" type="hidden" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <br />
</asp:Content>
